import 'package:flutter/material.dart';
 
 /// Curves
 /// 动画曲线,用于表示动画的速率
 /// 有许多默认的方式,可查看官方文档:
 /// https://api.flutter.dev/flutter/animation/Curves-class.html
void main() => runApp(MyApp());
 
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Material App Bar'),
        ),
        body: Center(
          child: AnimatedContainer(
            curve: Curves.ease,
            duration: Duration(seconds: 2),
            child: Text('Hello World'),
          ),
        ),
      ),
    );
  }
}